<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>  
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="admin" />
        <title>Group List</title>
    </head>
    <body>
		<div id="center-column">
			<div class="top-bar">
				<g:link class="button" action="create">ADD NEW</g:link>
				<h1>Group List</h1>
				<div class="breadcrumbs">
					<a class="home" href="${resource(dir:'')}">Home</a> / 
					<g:link class="create" action="create">New Group</g:link>
				</div>
			</div><br />
			<div class="select-bar">
				<g:form method="post">
					<input type="text" name="searchString" value="${searchString}"/>
					<g:actionSubmit action="list" value="Search" />
				</g:form>
			</div>		
	        <div class="body">
				<div class="table">
					<img src="${resource(dir:'images/admin',file:'bg-th-left.gif')}" width="8" height="7" alt="" class="left" />
					<img src="${resource(dir:'images/admin',file:'bg-th-right.gif')}" width="7" height="7" alt="" class="right" />
					<display:table name="groupList" defaultsort="1" partialList="true" decorator="de.koo.grum.groovy.util.DisplaytagWrapper"
									size="${resultSize}" pagesize="${pageSize}" requestURI="/grum/group/list"
									class="listing" cellpadding="0" cellspacing="0" sort="list">
						<display:column property="linkToGroup" title="Name" sortable="true"/>						
					</display:table>
                </div>
            </div>
        </div>
		<div id="right-column">
			<strong class="h">INFO</strong>
            <g:if test="${flash.message}">
	            <div class="box">${flash.message}</div>
            </g:if>
            <g:else>
				<div class="box">num groups: ${groupList.size()}</div>
            </g:else>
		</div>
    </body>
</html>
